@extends('Admin.Index.index')
@section('title')
    商品分类添加
@endsection
@section('content')
<article class="page-container">
    <form action="" method="post" class="form form-horizontal" id="form-admin-role-add">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>标签名称：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="" placeholder="" id="tagsName" name="tagsName">
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-6 col-sm-7 col-xs-offset-4 col-sm-offset-3">
                <button type="button" class="btn btn-success radius" id="tagsName-save" name="tagsName-save"><i class="icon-ok"></i> 添加</button>
            </div>
        </div>
    </form>
</article>
<script type="text/javascript">
    $(function()
    {
        $('#tagsName-save').click(function(){
            var tagsName = $('#tagsName').val();
            $.post('',{tagsName:tagsName},function(e)
            {
                layer.closeAll('lodading');
                if(e.status)
                {
                    layer.msg(e.info,{time:2000,icon:5});
//                    window.parent.location.reload();
                    window.location.href='tags_list';
                }else
                {
                    layer.msg(e.info,{time:2000,icon:5});
                }
            })
        })
    })
</script>
@endsection